/*
 * @Author: cola(sunshiwen)
 * @Date: 2022-04-22 09:38:34
 * @LastEditTime: 2022-09-29 17:30:35
 * @LastEditors: liuzhou
 * @Description: 分支管理
 * @FilePath: /maycur-koa/router/staticFilesManageRouter.js
 */
'use strict';
const { staticFilesManageSchema } = require('../schema');
const { staticFilesManageCtrl, publicCtrl } = require('../controller');

// 路由列表
module.exports = [
    // 获取staticFiles版本列表
    {
        method: 'post',
        path: '/static-files-manage/lists',
        controller: staticFilesManageCtrl.fetchStaticFilesList
    },

    // 新增staticFiles版本
    {
        method: 'post',
        path: '/static-files-manage/add',
        controller: staticFilesManageCtrl.addStaticFiles,
        paramSchema: staticFilesManageSchema.addStaticFiles,
    },
    
    // 修改staticFiles版本
    {
        method: 'post',
        path: '/static-files-manage/update',
        controller: staticFilesManageCtrl.updateStaticFiles,
        paramSchema: staticFilesManageSchema.updateStaticFiles,
    },

    // 删除混合云分支
    {
        method: 'delete',
        path: '/static-files-manage/delete/:id',
        controller: staticFilesManageCtrl.deleteStaticFile,
        paramSchema: staticFilesManageSchema.deleteStaticFile,
    },

    // 获取上传oss信息
    {
        method: 'get',
        path: '/static-files-manage/getToken',
        controller: publicCtrl.getToken,
    }
]